//package com.sjgtw.cloud.web.path.controller;
//
//import com.sjgtw.cloud.common.core.utils.poi.ExcelUtil;
//import com.sjgtw.cloud.common.core.web.controller.BaseController;
//import com.sjgtw.cloud.common.core.web.domain.AjaxResult;
//import com.sjgtw.cloud.common.core.web.page.TableDataInfo;
//import com.sjgtw.cloud.web.path.domain.PathPoint;
//import com.sjgtw.cloud.web.path.service.IPathPointService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//import java.util.List;
//
///**
// * 点位Controller
// *
// * @author lvyoufang
// * @date 2024-03-19
// */
//@RestController
//@RequestMapping("/pathPoint")
//@Api(tags = "点位")
//public class PathPointController extends BaseController
//{
//    @Autowired
//    private IPathPointService pathPointService;
//
//    /**
//     * 查询点位列表
//     */
//    @ApiOperation(value = "查询点位列表")
//    @GetMapping("/list")
//    public TableDataInfo list(PathPoint pathPoint)
//    {
//        startPage();
//        List<PathPoint> list = pathPointService.selectPathPointList(pathPoint);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出点位列表
//     */
//    @ApiOperation(value = "导出点位列表")
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, PathPoint pathPoint)
//    {
//        List<PathPoint> list = pathPointService.selectPathPointList(pathPoint);
//        ExcelUtil<PathPoint> util = new ExcelUtil<PathPoint>(PathPoint.class);
//	    try {
//		    util.exportExcel(response, list, "点位数据");
//	    } catch (IOException e) {
//		    e.printStackTrace();
//	    }
//    }
//
//    /**
//     * 获取点位详细信息
//     */
//    @ApiOperation(value = "获取点位详细信息")
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") Long id)
//    {
//        return AjaxResult.success(pathPointService.selectPathPointById(id));
//    }
//
//    /**
//     * 新增点位
//     */
//    @ApiOperation(value = "新增点位")
//    @PostMapping
//    public AjaxResult add(@RequestBody PathPoint pathPoint)
//    {
//        return toAjax(pathPointService.insertPathPoint(pathPoint));
//    }
//
//    /**
//     * 修改点位
//     */
//    @ApiOperation(value = "修改点位")
//    @PutMapping
//    public AjaxResult edit(@RequestBody PathPoint pathPoint)
//    {
//        return toAjax(pathPointService.updatePathPoint(pathPoint));
//    }
//
////    /**
////     * 删除点位
////     */
////    @ApiOperation(value = "删除点位")
////	@DeleteMapping("/{ids}")
////    public AjaxResult remove(@PathVariable String[] ids)
////    {
////        return toAjax(pathPointService.deletePathPointByIds(ids));
////    }
//    /**
//     * 删除点位
//     */
//    @ApiOperation(value = "删除点位")
//	@DeleteMapping("/{id}")
//    public AjaxResult remove(@PathVariable Long id)
//    {
//        return toAjax(pathPointService.deletePathPointById(id));
//    }
//}
